home *** CD-ROM | disk | FTP | other *** search
- Path: p406.asd.euronet.nl!its
- From: its@euronet.nl (it's_b.v.)
- Newsgroups: comp.lang.c
- Subject: BEGINNER --> problem with ATEXIT !!!!
- Date: Mon, 5 Feb 1996 13:46:32
- Organization: Euronet Internet
- Message-ID: <its.2.000DC6F8@euronet.nl>
- NNTP-Posting-Host: p406.asd.euronet.nl
- Keywords: ATEXIT
- X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
-
- Can somebody help me with the following :
-
- I use the atexit() function to start a DOS-batchfile when my program ends.
- The memory which this program uses is freed AFTER the batch-file has
- completed.
-
- the program-code looks like this :
-
- void batch( void )
- {
- system("\\BATFILE.BAT");
- }
-
-
- void main( void )
- {
- atexit( batch );
-
- /* my program code */
-
- exit( 1 );
- }
-
- QUESTION :
- Is it possible to free the memory which is used by my program BEFORE the
- batch-file is executed !
-
- Thank you
- Ronald van der List
- its@euronet.nl
-
-
-